﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Registration.aspx.cs" Inherits="Commercial_Registration" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <h1>
        Registration</h1>
    <div id="lMess" class="MessageNotificationDiv" runat="server" />
    <div class="formContainer">
        <div class="formFieldElement_fullwidth">
            <span>User name</span><span class="formStar_RequireField"> *</span><br />
            <asp:TextBox ID="tbUserName" runat="server" MaxLength="35" CssClass="formField_fullwidth" />
            <asp:RequiredFieldValidator ID="fvName" ControlToValidate="tbUserName" runat="server"
                Display="Dynamic" class="formValidator_RequireField" ErrorMessage="Required field!" />
        </div>
        <div class="formFieldElement_fullwidth">
            <span>Password</span><span class="formStar_RequireField"> *</span><br />
            <asp:TextBox ID="tbPassWord" runat="server" MaxLength="35" TextMode="Password" CssClass="formField_fullwidth" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="tbPassWord"
                runat="server" class="formValidator_RequireField" Display="Dynamic" ErrorMessage="Required field!" />
        </div>
        <div class="formFieldElement_fullwidth">
            <span>Confirm password</span><span class="formStar_RequireField"> *</span><br />
            <asp:TextBox ID="tbPassWord2" runat="server" MaxLength="35" TextMode="Password" CssClass="formField_fullwidth" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="tbPassWord2"
                runat="server" class="formValidator_RequireField" Display="Dynamic" ErrorMessage="Required field!" />
        </div>
        <div class="formFieldElement_fullwidth">
            <span>Name</span><span class="formStar_RequireField"> *</span><br />
            <asp:TextBox ID="tbName" runat="server" MaxLength="100" CssClass="formField_fullwidth" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="tbName"
                runat="server" class="formValidator_RequireField" Display="Dynamic" ErrorMessage="Required field!" />
        </div>
        <div class="formFieldElement_fullwidth">
            <span>Mail</span><br />
            <asp:TextBox ID="tbMail" runat="server" MaxLength="50" CssClass="formField_fullwidth" />
            <asp:RegularExpressionValidator ID="Reg" runat="server"  Display="Dynamic" ErrorMessage="Incorect mail!"
                class="formValidator_RequireField" ControlToValidate="tbMail"/>
        </div>         
        <div class="formFieldElement_fullwidth">
            <asp:Button ID="bSave" runat="server" OnClick="bSave_Click" CssClass="formButton"
                Text="Save" />
        </div>
        <div style="clear: both; display: block; height: 2px;">
            &nbsp;</div>
    </div>
</asp:Content>

